/**
 * 说明：
 * 创建人：pluto
 * 创建时间：2018/8/9
 */

var ProtocolService = function (request) {
    this.save = function(param){
        return request.post('v0/common/protocol', param);
    }
    this.update = function (param) {
        return request.put('v0/common/protocol', param);
    }

    this.getByType = function (type) {
        return request.get('v0/common/protocol/type/'+type);
    }
};
angular.module("app.system.protocol.service",[]).service("ProtocolService", ProtocolService);

